X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,GENERIC_IXHASH,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org X-IronPortListener: Outbound_SMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4BAFnq3E6cKEcU/2dsb2JhbABEhQWVDo14gSKBD34HgXIBAQEEEhERVQIBCA0NAhgOAgICHRMVAgENAQEEGxqhSYlQkV6BMIhbM2MEiC2EL41njE8 From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "cygwin AT cygwin DOT com" Date: Mon, 5 Dec 2011 11:03:04 -0500 Subject: RE: injob version 1.3 Message-ID: <0105D5C1E0353146B1B222348B0411A20A43AF2C0C@NIHMLBX02.nih.gov> References: <4EDC224D DOT 3020907 AT gmail DOT com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id pB5G43Ke008332 Daniel Colascione sent the following at Sunday, December 04, 2011 8:46 PM > > * injob: runs a program (Win32 or Cygwin) in a job object, imbuing it > * and all its sub-processes with Cygwin job control support. > * > * Revision history: > * > * Version 1.3 - 2011-12-04 > * > * - Add ability to wait for all processes in a job to exit > * before killing the entire job. > * > * - Add ability to trace execution of processes in jobs. > * > * - Correctly block SIGHUP. > * > * - Print PIDs of children in the job when SIGUSR1 is > * received. > * > * - Correctly propagate exit status of Cygwin programs in the job. > * > * Version 1.0 - 2011-04-06 > * > * - Initial release > * > */ > >/** Windows 7. Everything up to date. /arc/2build> gcc -o injob injob.c /tmp/ccOdzsVZ.o:injob.c:(.text+0x87b): undefined reference to `__imp__NtQueryInformationProcess AT 20' collect2: ld returned 1 exit status What am I doing wrong? Thanks, - Barry Disclaimer: Statements made herein are not made on behalf of NIAID.