Opened 2 weeks ago

Closed 2 weeks ago

#14322 closed bug (fixed)

posix_spawn only dup2() once

Reported by: leorize Owned by: korli
Priority: normal Milestone: Unscheduled
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

The program pipe.c attempts to redirect pipetest.c stdout and stderr to their respective pipes for inspection

How to run:

$ gcc -o pipetest pipetest.c
$ gcc -o pipe pipe.c
$ ./pipe

Expected: no output

Got:

test err

(hangs)

The hang happens because the child stderr isn't redirected to the pipe.

Tested on hrev52165, x86_64

Attachments (3)

pipe.c (1.6 KB) - added by leorize 2 weeks ago.
pipetest.c (130 bytes) - added by leorize 2 weeks ago.
test.h (89 bytes) - added by leorize 2 weeks ago.

Download all attachments as: .zip

Change History (5)

Changed 2 weeks ago by leorize

Attachment: pipe.c added

Changed 2 weeks ago by leorize

Attachment: pipetest.c added

Changed 2 weeks ago by leorize

Attachment: test.h added

comment:1 Changed 2 weeks ago by pulkomandy

Owner: changed from nobody to korli
Status: newassigned

comment:2 Changed 2 weeks ago by korli

Resolution: fixed
Status: assignedclosed

Fixed in hrev52177. Thanks for the report!

Note: See TracTickets for help on using tickets.