winlin

support asprocess for oryx. 2.0.218

@@ -488,7 +488,7 @@ SrsServer::SrsServer() @@ -488,7 +488,7 @@ SrsServer::SrsServer()
488 signal_manager = NULL; 488 signal_manager = NULL;
489 489
490 handler = NULL; 490 handler = NULL;
491 - ppid = -1; 491 + ppid = ::getppid();
492 492
493 // donot new object in constructor, 493 // donot new object in constructor,
494 // for some global instance is not ready now, 494 // for some global instance is not ready now,