Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Oni as background process #150

Merged
merged 1 commit into from
Jan 7, 2017
Merged

Oni as background process #150

merged 1 commit into from
Jan 7, 2017

Conversation

Rafi993
Copy link
Contributor

@Rafi993 Rafi993 commented Jan 7, 2017

I made little change to solve issue #146. It works smootly on Linux.

let out = fs.openSync(log, 'a')
let err = fs.openSync(log, 'a')
processOptions.detached = true
processOptions.stdio = [ 'ignore', out, err ]

// Check for Windows, assume macOS/Windows otherwise

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR, but: this comment cannot possibly be correct.

@bryphe
Copy link
Member

bryphe commented Jan 7, 2017

Thanks @Rafi993 ! I'll bring this in for Linux. On Windows, there is still an issue where a node prompt pops up when the app is started. I think we need to use spawn with cmd.exe /c on Windows, I'll address that in another PR for #146 on top of this.

@bryphe bryphe merged commit 8ad2b9c into onivim:master Jan 7, 2017
@Rafi993 Rafi993 deleted the Process_background branch January 13, 2017 00:56
@13k 13k mentioned this pull request Mar 4, 2018
6 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants