Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2012 21:44:39 GMT
From:      Ryan Stone <rstone@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/166929: dtrace -c doesn't seem to like it if the subcommand doesn't call exit()
Message-ID:  <201204132144.q3DLidfE095144@red.freebsd.org>
Resent-Message-ID: <201204132150.q3DLoBNd075293@freefall.freebsd.org>

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

>Number:         166929
>Category:       kern
>Synopsis:       dtrace -c doesn't seem to like it if the subcommand doesn't call exit()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 13 21:50:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Stone
>Release:        8-STABLE
>Organization:
>Environment:
>Description:
I had a program that did a return 0; from main(), and the program never seemed to exit properly(dtrace and the subcommand starting spinning at a high CPU rate).

I replaced the return 0; with an exit(0); and everything worked as expected.
>How-To-Repeat:

>Fix:


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



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