summaryrefslogtreecommitdiffstats
path: root/runtime/transport/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/transport/control.c')
-rw-r--r--runtime/transport/control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c
index 1f7f70bd..5242af49 100644
--- a/runtime/transport/control.c
+++ b/runtime/transport/control.c
@@ -239,6 +239,7 @@ static int _stp_ctl_open_cmd (struct inode *inode, struct file *file)
_stp_ctl_opens++;
_stp_pid = current->pid;
+ utt_overwrite_flag = 0;
return 0;
}
@@ -247,6 +248,8 @@ static int _stp_ctl_close_cmd (struct inode *inode, struct file *file)
if (_stp_ctl_opens)
_stp_ctl_opens--;
_stp_pid = 0;
+ if (!_stp_exit_flag)
+ utt_overwrite_flag = 1;
return 0;
}