Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.development.system > #176

Re: Status = 2943 from waitpid?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed0.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Rainer Weikusat <rweikusat@mssgmbh.com>
Newsgroups comp.os.linux.development.apps, comp.os.linux.development.system
Subject Re: Status = 2943 from waitpid?
Date Fri, 10 Jun 2011 15:04:13 +0100
Lines 14
Message-ID <878vt93hr6.fsf@sapphire.mobileactivedefense.com> (permalink)
References <033817d4-c109-4d37-a476-f7710b7ed829@a10g2000vbz.googlegroups.com> <8739jjnp6k.fsf@sapphire.mobileactivedefense.com> <f8e3e01b-410b-4e9c-bce9-fabbc95ae332@s16g2000prf.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Transfer-Encoding 8bit
X-Trace individual.net GKbwJ0dMBcVDY7v9zgUOAQTTPSWb5JAITzqS14Ax5T0j9nmWk=
Cancel-Lock sha1:RRCaa45L1eppJdbc8QHh6uYQQ8s= sha1:+75nMy2pjM7n1mEpb8DkhjeCEs0=
User-Agent Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Xref x330-a1.tempe.blueboxinc.net comp.os.linux.development.apps:145 comp.os.linux.development.system:176

Cross-posted to 2 groups.

Show key headers only | View raw


Shankar <shankarke@gmail.com> writes:
> On Jun 9, 8:51 am, Rainer Weikusat <rweiku...@mssgmbh.com> wrote:
>> Jeffrey Walton <noloa...@gmail.com> writes:
>> > I'm ptrace'ing a process. After fork/exec and then a wait on the
>> > child, I'm getting a status of 2943. I'm testing for failure, but
>> > waitpid reports non-failure. I've looked in <sys/wait.h>, but the
>> > value 2943 is not defined and does not appear to be a bit mask.
>>
>> > Any ideas on where I should look?
>>
>
> You can just right shift the status by 8 and get the actual status.

No. Provided the lower order byte has a value of 0, you can do that.

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Find similar


Thread

Status = 2943 from waitpid? Jeffrey Walton <noloader@gmail.com> - 2011-06-08 21:57 -0700
  Re: Status = 2943 from waitpid? pacman@kosh.dhis.org (Alan Curry) - 2011-06-09 06:03 +0000
    Re: Status = 2943 from waitpid? Jeffrey Walton <noloader@gmail.com> - 2011-06-09 05:27 -0700
  Re: Status = 2943 from waitpid? Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-06-09 13:51 +0100
    Re: Status = 2943 from waitpid? Shankar <shankarke@gmail.com> - 2011-06-09 23:25 -0700
      Re: Status = 2943 from waitpid? Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-06-10 15:04 +0100

csiph-web