public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfsdump: properly set Parent's PID
@ 2013-01-31 20:13 Carlos Maiolino
  2013-03-12 16:34 ` Rich Johnston
  0 siblings, 1 reply; 9+ messages in thread
From: Carlos Maiolino @ 2013-01-31 20:13 UTC (permalink / raw)
  To: xfs

Set parentpid variable to the correct Parent's ID using getppid() instead of
getpid()

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
---
 common/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/main.c b/common/main.c
index 980d2d4..848a887 100644
--- a/common/main.c
+++ b/common/main.c
@@ -198,7 +198,7 @@ main( int argc, char *argv[] )
 	/* Get the parent's pid. will be used in signal handling
 	 * to differentiate parent from children.
 	 */
-	parentpid = getpid( );
+	parentpid = getppid( );
 	rval = atexit(mlog_exit_flush);
 	assert(rval == 0);
 
-- 
1.8.1

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-03-18 17:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-31 20:13 [PATCH] xfsdump: properly set Parent's PID Carlos Maiolino
2013-03-12 16:34 ` Rich Johnston
2013-03-13  4:09   ` Eric Sandeen
2013-03-13 12:46     ` Carlos Maiolino
2013-03-13 12:58       ` Carlos Maiolino
2013-03-13 13:39         ` Eric Sandeen
2013-03-18 13:21           ` Christoph Hellwig
2013-03-18 14:12             ` Eric Sandeen
2013-03-18 17:13               ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox