From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cceb19dbd864b8da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-13 01:01:24 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!news.uar.net!carrier.kiev.ua!news.kiev.sovam.com!Svitonline.COM!not-for-mail From: "Maxim Reznik" Newsgroups: comp.lang.ada Subject: Re: Unix-daemons in Ada Date: Fri, 13 Jul 2001 10:51:30 +0300 Organization: Svit Online (post does not reflect views of Golden Telecom) Message-ID: <9im9d5$2r3j$1@news.kiev.sovam.com> References: <87sngg3jp8.fsf@520075220525-0001.dialin.t-online.de> <3B3F2F39.50BAF3CF@worldnet.att.net> <87ofr43efd.fsf@520075220525-0001.dialin.t-online.de> <3B3F5C68.AA1C0924@worldnet.att.net> <3B422FAF.886FAF2B@ebox.tninet.se> <9i4h63$73f1@news.kvaerner.com> <3B463CB5.CE6063D5@online.no> NNTP-Posting-Host: 212.109.37.91 X-Trace: news.kiev.sovam.com 995010789 93299 212.109.37.91 (13 Jul 2001 07:53:09 GMT) X-Complaints-To: abuse@svitonline.com NNTP-Posting-Date: 13 Jul 2001 07:53:09 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2479.0006 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 Xref: archiver1.google.com comp.lang.ada:9904 Date: 2001-07-13T07:53:09+00:00 List-Id: Just for reference. I encountered the followin procedure in Glade 3.13p (file s-garrem.ads unit System.Garlic.Remote). ------------ -- Detach -- ------------ procedure Detach is Dev_Null : C.int; Dev_Null_Name : constant C.char_array := To_C ("/dev/null"); begin Dev_Null := C_Open (Dev_Null_Name, O_Rdwr); C_Dup2 (Dev_Null, 0); C_Dup2 (Dev_Null, 1); C_Dup2 (Dev_Null, 2); C_Setsid; end Detach; Does it help? -- Maxim Reznik