Skip to content
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

Process exit reason may differ from process/exit argument #11

Closed
sskorokhodov opened this issue Aug 22, 2016 · 1 comment
Closed

Process exit reason may differ from process/exit argument #11

sskorokhodov opened this issue Aug 22, 2016 · 1 comment
Assignees
Labels

Comments

@sskorokhodov
Copy link
Collaborator

sskorokhodov commented Aug 22, 2016

(process/spawn
  (proc-fn [] (process/exit (process/self) :abnormal)) [] {})

Exit reason of process spawned above may be either :normal or :abnormal and randomly changes between executions.

@sskorokhodov sskorokhodov changed the title Process may exit with reason :normal after (process/exit pid :abnormal) has been called Process exit reason may differ from process/exit reason argument Aug 22, 2016
@sskorokhodov sskorokhodov changed the title Process exit reason may differ from process/exit reason argument Process exit reason may differ from process/exit argument Aug 22, 2016
@sskorokhodov sskorokhodov self-assigned this Aug 23, 2016
sskorokhodov added a commit that referenced this issue Aug 24, 2016
Use control channel only to manage healthy* process life cycle to avoid
race conditions:
- put proc-fn return value into control channel,
- use offer! instead of put! to synchronously.

Decrease timeouts in process tests to reasonable values.

*Add special kill channel to kill processes which control channel is
full
sskorokhodov added a commit that referenced this issue Aug 24, 2016
Use control channel only to manage healthy* process life cycle to avoid
race conditions:
- put proc-fn return value into control channel,
- use offer! instead of put! to synchronously.

Decrease timeouts in process tests to reasonable values.

*Add special kill channel to kill processes which control channel is
full.
@sskorokhodov
Copy link
Collaborator Author

Fixed by 7107ce7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant