-
-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to spawn a process with CREATE_NO_WINDOW on windows #245
Conversation
https://github.com/tboox/tbox/blob/master/src/tbox/platform/process.h#L41 |
https://github.com/tboox/tbox/blob/master/src/tbox/platform/process.h#L41 |
src/tbox/platform/process.h
Outdated
@@ -43,6 +43,7 @@ typedef enum __tb_process_flag_e | |||
TB_PROCESS_FLAG_NONE = 0 | |||
, TB_PROCESS_FLAG_SUSPEND = 1 //!< suspend process | |||
, TB_PROCESS_FLAG_DETACH = 2 //!< all subprocesses will be exited when the parent process is exited (ctrl+c or onexit) if this flag is not setted | |||
, TB_PROCESS_FLAG_NO_WINDOW = 4 //!< avoid to launch the console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释可以再写详细点,如果仅仅只对 windows 有效,最好提下,如果其他平台也支持,那就一并处理下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个仅仅对windows有效,因为别的平台不需要处理这个问题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那也可以提下,主要用于处理 win 下的问题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已更新
close #244
In most cases, the spawned process is console app without UI. That's why I set the CREATE_NO_WINDOW flag directly.