add an alarm to fcntl test to stop tru64 from freezing on the test
authorAndrew Tridgell <tridge@samba.org>
Sun, 6 May 2001 12:47:32 +0000 (12:47 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 6 May 2001 12:47:32 +0000 (12:47 +0000)
(This used to be commit 6b1ced1674217343ab4e5f966608a21c66bf650c)

source3/tests/fcntl_lock.c

index 1b790b0a97a203414287f5642c2c0b226fadf080..d03efb35b33b9940084e6b64227ff3ecd01b2ebd 100644 (file)
@@ -44,6 +44,8 @@ int main(int argc, char *argv[])
        int fd, ret, status=1;
        pid_t pid;
 
+       alarm(10);
+
        if (!(pid=fork())) {
                sleep(2);
                fd = open(DATA, O_RDONLY);