Article View: pl.comp.os.linux.programowanie
Article #209Re: Jak rozpoznac init?
From: Daniel Mróz
Date: Thu, 09 Sep 1999 08:03
Date: Thu, 09 Sep 1999 08:03
15 lines
1462 bytes
1462 bytes
On 8 Sep 1999 18:05:43 GMT, Marcin Kadziolka <kalma@polsl.gliwice.pl> wrote: >> Pytanie prawdopodobnie trywialne, ale nie wiem jak to rozwiazac. Jak wykryc czy >> program zostal uruchomiony przez init'a? Probowalem sprawdzac ID przywodcy >getppid() == 1 Probowalem i dostaje PPID taki sam jak proces przywodcy grupy, czyli shell sie odcina :( Pozdrawiam Beorn -- ------------------------------------------------------------------------------- Daniel 'Beorn' Mróz beorn@alpha.pl ----------------------------------ooo^..^ooo-----------------------------------
Technical Details
Message-ID:
<slrn7tf1aq.h6.beorn@cyberdeck.digital.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.icm.edu.pl!orion.cst.tpsa.pl!news.tpnet.pl!not-for-mailReferences:
<slrn7tdb1r.hr.beorn@cyberdeck.digital.pl> <7r68hn$c25$1@kermit.rubryk.home>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.icm.edu.pl!orion.cst.tpsa.pl!news.tpnet.pl!not-for-mail From: Daniel Mróz <beorn@cyberdeck.digital.pl> Newsgroups: pl.comp.os.linux.programowanie Subject: Re: Jak rozpoznac init? References: <slrn7tdb1r.hr.beorn@cyberdeck.digital.pl> <7r68hn$c25$1@kermit.rubryk.home> Organization: *phi* Tak sobie walimy mlotkami d8-/ Reply-To: beorn@alpha.pl Message-ID: <slrn7tf1aq.h6.beorn@cyberdeck.digital.pl> Mime-Version: 1.0 User-Agent: slrn/0.9.5.4 (UNIX) Lines: 15 Date: Thu, 09 Sep 1999 08:03:52 GMT NNTP-Posting-Host: 212.160.55.22 X-Complaints-To: abuse@tpsa.pl X-Trace: news.tpnet.pl 936864232 212.160.55.22 (Thu, 09 Sep 1999 10:03:52 MET DST) NNTP-Posting-Date: Thu, 09 Sep 1999 10:03:52 MET DST Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit