X-Recipient: archive-cygwin@delorie.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]" <BBuchbinder@niaid.nih.gov>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Date: Mon, 5 Dec 2011 11:03:04 -0500
Subject: RE: injob version 1.3
Message-ID: <0105D5C1E0353146B1B222348B0411A20A43AF2C0C@NIHMLBX02.nih.gov>
References: <4EDC224D.3020907@gmail.com>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@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.


