[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <46799FA3-D575-4A2D-8DEB-CE5149A4110D@ci.uchicago.edu>
Date: Thu, 29 Mar 2012 15:12:07 -0500
From: Karl Pickett <kjp@...uchicago.edu>
To: linux-kernel@...r.kernel.org
Cc: kay.sievers@...y.org, Oleg Nesterov <oleg@...hat.com>,
Lennart Poettering <lennart@...ttering.net>
Subject: Is prctl(PR_SET_CHILD_SUBREAPER) going to break my code which checks getppid == 1?
Re: http://thread.gmane.org/gmane.linux.kernel/1236479
I'm wondering if this is going to break code that checks getppid() == 1?
I have a TCL/TK GUI app that spawns ssh. I want the ssh to die immediately if the GUI process crashes, so ssh is launched with a wrapper c program that does:
prctl(PR_SET_PDEATHSIG, SIGHUP);
if (getppid() == 1) /* parent died already? */
return 0;
So what is getppid() going to return for some user using this new 'session manager reaper'? How else am I supposed to do proper processes supervision (with TCL/TK as a parent...)? Also, this program is open source but we distribute binaries that work on as many platforms as possible... we find most users don't want to compile things.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists