Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2001 12:00:52 +0800 (CST)
From:      in@amalea.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/27262: process won't be terminated after CPUTIME exceeded
Message-ID:  <200105110400.f4B40qk90902@dns.amalea.org>

next in thread | raw e-mail | index | archive | help

>Number:         27262
>Category:       kern
>Synopsis:       process won't be terminated after CPUTIME exceeded
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 10 21:10:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     in@amalea.org
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
International Amalea Organization
>Environment:
System: FreeBSD dns.amalea.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon May 7 22:33:41 CST 2001 in@dns.amalea.org:/usr/obj/usr/src/sys/GENERIC i386


	CPU: Pentium III/Pentium III Xeon/Celeron (733.36-MHz 686-class CPU)
	FreeBSD 5.0-CURRENT i386

>Description:

process which exceeds CPUTIME limit by setrlimit()
will not receive signal SIGXCPU and terminate.


>How-To-Repeat:

/*-
 * this program should be terminated after 2 secs,
 */
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>

int
main(argc, argv)
     int argc;
     char *argv[];
{
        struct rlimit rlp;
        rlp.rlim_cur = 2;
        rlp.rlim_max = 2;
        setrlimit(RLIMIT_CPU, &rlp);
        while( 1 )
                ;
}


>Fix:

	unknown
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105110400.f4B40qk90902>