lkml.org 
[lkml]   [2012]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[REGRESSION] NFSv4: open(O_TRUNC) hangs
Date
Now this test program hangs on latest git.

Thanks,
Miklos
---

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>

int main(int argc, char *argv[])
{
int res;
char *name = argv[1];
int fd;

unlink(name);
fd = creat(name, 0644);
write(fd, "123", 3);
close(fd);
close(open(name, O_RDONLY | O_TRUNC));

return 0;
}


\
 
 \ /
  Last update: 2012-04-03 18:29    [W:0.078 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site