lkml.org 
[lkml]   [2008]   [Jul]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 13 Jul 2008 14:46:17 +0400
FromOleg Nesterov <>
SubjectRe: [PATCH] x86_64: fix delayed signals
On 07/12, Denys Vlasenko wrote:
>
> On Saturday 12 July 2008 22:26, T?r?k Edwin wrote:
> > A bit off-topic, but something I noticed during the tests:
> > In my original test I have rm-ed the files right after launching dd in
> > the background, yet it still continued to write to the disk.
> > I can understand that if the file is opened O_RDWR, you might seek back
> > and read what you wrote, so Linux needs to actually do the write,
> > but why does it insist on writing to the disk, on a file opened with
> > O_WRONLY, after the file itself got unlinked?
>
> Because process can do
>
> fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_RDWR)

Is it?

SETFL_MASK doesn't have O_RDWR, and in any case setfl() changes ->f_flags,
not ->f_mode.

Oleg.



\
 
 \ /
  Last update: 2008-07-13 12:45    [from the cache]
©2003-2008