Changeset 5be5396 in mainline for uspace/srv/hid/remcons/remcons.c
- Timestamp:
- 2024-10-11T16:08:55Z (3 months ago)
- Branches:
- master
- Children:
- b3b79981
- Parents:
- fb06afd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/remcons/remcons.c
rfb06afd r5be5396 739 739 user->srvs.ops = &con_ops; 740 740 user->srvs.sarg = remcons; 741 user->srvs.abort_timeout = 1000 ;741 user->srvs.abort_timeout = 1000000; 742 742 743 743 telnet_user_add(user); … … 765 765 while (!user_can_be_destroyed_no_lock(user)) { 766 766 if (user->task_finished) { 767 user->conn = NULL;768 767 user->socket_closed = true; 769 768 user->srvs.aborted = true; 770 continue;771 769 } else if (user->socket_closed) { 772 770 if (user->task_id != 0) { … … 774 772 } 775 773 } 776 fibril_condvar_wait_timeout(&user->refcount_cv, &user->recv_lock, 1000); 774 fibril_condvar_wait_timeout(&user->refcount_cv, 775 &user->recv_lock, 1000000); 777 776 } 778 777 fibril_mutex_unlock(&user->recv_lock); … … 786 785 787 786 telnet_user_log(user, "Destroying..."); 787 788 if (remcons->enable_ctl) { 789 /* Disable mouse tracking */ 790 vt100_set_button_reporting(remcons->vt, false); 791 792 /* Reset all character attributes and clear screen */ 793 vt100_sgr(remcons->vt, 0); 794 vt100_cls(remcons->vt); 795 vt100_set_pos(remcons->vt, 0, 0); 796 797 telnet_user_flush(user); 798 } 799 800 tcp_conn_send_fin(user->conn); 801 user->conn = NULL; 802 788 803 telnet_user_destroy(user); 804 vt100_destroy(remcons->vt); 805 free(remcons); 789 806 return; 790 807 error:
Note:
See TracChangeset
for help on using the changeset viewer.