t-sem.c (147078) | t-sem.c (157001) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 2000-2001, 2005-2006 Sendmail, Inc. and its suppliers. |
3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 */ 9 10#include <sm/gen.h> | 3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 */ 9 10#include <sm/gen.h> |
11SM_RCSID("@(#)$Id: t-sem.c,v 1.14 2005/03/25 21:27:41 ca Exp $") | 11SM_RCSID("@(#)$Id: t-sem.c,v 1.15 2006/03/13 20:40:43 msk Exp $") |
12 13#include <stdio.h> 14 15#if SM_CONF_SEM 16# include <stdlib.h> 17# include <unistd.h> 18# include <sysexits.h> 19# include <sm/heap.h> --- 282 unchanged lines hidden (view full) --- 302 303 if (interactive) 304 r = seminter(owner); 305 else 306 { 307 pid_t pid; 308 309 printf("This test takes about 8 seconds.\n"); | 12 13#include <stdio.h> 14 15#if SM_CONF_SEM 16# include <stdlib.h> 17# include <unistd.h> 18# include <sysexits.h> 19# include <sm/heap.h> --- 282 unchanged lines hidden (view full) --- 302 303 if (interactive) 304 r = seminter(owner); 305 else 306 { 307 pid_t pid; 308 309 printf("This test takes about 8 seconds.\n"); |
310 printf("If it takes longer than 30 second, please interrupt it\n"); | 310 printf("If it takes longer than 30 seconds, please interrupt it\n"); |
311 printf("and compile again without semaphore support, i.e.,"); 312 printf("-DSM_CONF_SEM=0\n"); 313 if ((pid = fork()) < 0) 314 { 315 perror("fork failed\n"); 316 return -1; 317 } 318 --- 26 unchanged lines hidden --- | 311 printf("and compile again without semaphore support, i.e.,"); 312 printf("-DSM_CONF_SEM=0\n"); 313 if ((pid = fork()) < 0) 314 { 315 perror("fork failed\n"); 316 return -1; 317 } 318 --- 26 unchanged lines hidden --- |