Thread (16 messages) 16 messages, 2 authors, 2011-10-24

Re: [PATCH 1/8] xfstests: fsstress should kill children tasks before exit

From: Christoph Hellwig <hch@infradead.org>
Date: 2011-10-24 09:06:45
Also in: linux-ext4, linux-fsdevel

+int 		should_stop = 0;
this should use sig_atomic_t, or at least volatile.
quoted hunk ↗ jump to hunk
 
 void	add_to_flist(int, int, int);
 void	append_pathname(pathname_t *, char *);
@@ -253,6 +256,10 @@ void	usage(void);
 void	write_freq(void);
 void	zero_freq(void);
 
+void sg_handler(int signum) {
+	should_stop = 1;
+}
please use normal K&R / Linux style brace placement.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help