bugGPSD - Bugs: bug #55289, osX deprecates daemon()

 
 

bug #55289: osX deprecates daemon()

Submitted by:  Gary E. Miller <garyemiller>
Submitted on:  Wed 26 Dec 2018 10:40:09 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 31 May 2019 10:29:08 AM UTC, comment #2: 

I see from the comment beginning "Avoid the OSX deprecation warning." that a fix has been applied.  Therefore, closing.

Eric S. Raymond <esr>
Project Administrator
Wed 26 Dec 2018 10:43:11 PM UTC, comment #1: 

Aslo in os_compat.c


os_compat.c:124:12: warning: 'daemon' is deprecated: first deprecated in macOS 1
0.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
return daemon(nochdir, noclose);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.14.sdk/usr/include/stdlib.h:293:6: note: 'daemon' has been explicit
ly marked deprecated here
int daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_M
SG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs ins
tead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
^
1 warning generated.

Gary E. Miller <garyemiller>
Project Administrator
Wed 26 Dec 2018 10:40:09 PM UTC, original submission:  

here is the warning:


os_compat.c:124:12: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
return daemon(nochdir, noclose);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:293:6: note: 'daemon' has been explicitly marked deprecated here
int daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
^
1 warning generated.

Gary E. Miller <garyemiller>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by esr (Posted a comment)
  • -email is unavailable- added by garyemiller (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-31 esr Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.5