| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] xfsdump: properly set Parent's PID |
| From: | Carlos Maiolino <cmaiolino@xxxxxxxxxx> |
| Date: | Thu, 31 Jan 2013 15:13:17 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
Set parentpid variable to the correct Parent's ID using getppid() instead of
getpid()
Signed-off-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
---
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 50% more blocks allocated than needed, Brian Foster |
|---|---|
| Next by Date: | Re: [PATCH 1/3] xfs: add agskip=value mount option, Rich Johnston |
| Previous by Thread: | Пpopыв в Интеpнeт-Маркетинге, Кaк увеличить конверсию нa сайтe зa один мeсяц |
| Next by Thread: | [ 3.5.y.z extended stable ] Patch "xfs: Fix possible use-after-free with AIO" has been added to staging queue, Herton Ronaldo Krzesinski |
| Indexes: | [Date] [Thread] [Top] [All Lists] |