[haiku-bugs] Re: [Haiku] #1870: Expander - unzipping on full volume hangs

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 06 Apr 2010 21:21:59 -0000

#1870: Expander - unzipping on full volume hangs
-----------------------------------+----------------------------------------
 Reporter:  stippi                 |       Owner:  korli         
     Type:  bug                    |      Status:  new           
 Priority:  low                    |   Milestone:  R1            
Component:  Applications/Expander  |     Version:  R1/Development
 Keywords:                         |   Blockedby:                
 Platform:  All                    |    Blocking:                
-----------------------------------+----------------------------------------

Comment(by bonefish):

 Replying to [comment:9 anevilyak]:
 > Perhaps a feasible solution would be to close the piped stdin
 descriptor? That way the utility side would notice immediately that it
 can't get input from the user and most likely abort.

 Could work in principle, though closing is not so good, as then the first
 file opened by the program will get FD 0 and weird things could happen.
 But dup2()ing a /dev/zero FD instead should do the trick. Without actually
 parsing the program output it will be virtually impossible to present a
 specific error message to the user, though.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/1870#comment:10>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: