Ticket #2777 (closed bug: duplicate)

Opened 5 years ago

Last modified 5 years ago

process created by system "yes" exits with error code 1

Reported by: greenrd Owned by:
Priority: normal Milestone:
Component: libraries/process Version: 6.10.1
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> :m +System.Process
Prelude System.Process> system "yes"

results in a long stream of "y"s and then, almost instantly:

ExitFailure 1

This should not happen. The Linux command "yes" is supposed to run forever, and exit code 1 indicates a write error.

Change History

Changed 5 years ago by greenrd

This bug does not occur when ghc -e is used instead of ghci.

Changed 5 years ago by simonmar

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to duplicate

Turns out to be the same bug as #2778.

Note: See TracTickets for help on using tickets.