Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dbp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packages
dbp
Commits
31232462
Commit
31232462
authored
Oct 16, 2015
by
aTc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/slaeshjag/dbp
into upstream
parents
b8d1e990
7c775726
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
dbpd/package.c
dbpd/package.c
+9
-0
No files found.
dbpd/package.c
View file @
31232462
...
...
@@ -495,12 +495,21 @@ void package_release_path(struct package_s *p, const char *path) {
void
package_release_mount
(
struct
package_s
*
p
,
const
char
*
device
)
{
int
i
;
void
*
last
=
NULL
;
pthread_mutex_lock
(
&
p
->
mutex
);
fprintf
(
dbp_error_log
,
"Umount '%s'
\n
"
,
device
);
for
(
i
=
0
;
i
<
((
volatile
int
)
p
->
entries
);
i
++
)
{
// ID won't change if we failed to kill it last time, and we don't alloc any new
// ID's somewhere else while this loop is running, since the struct is locked
if
(
p
->
entry
[
i
].
id
==
last
)
{
fprintf
(
dbp_error_log
,
"Package '%s' seems unkillable for now
\n
"
,
p
->
entry
[
i
].
id
);
continue
;
// Unkillable, for some reason
}
last
=
p
->
entry
[
i
].
id
;
if
(
strcmp
(
p
->
entry
[
i
].
device
,
device
))
{
if
(
config_struct
.
verbose_output
)
fprintf
(
dbp_error_log
,
"Package '%s' does not reside on '%s', it's on '%s', skipping
\n
"
,
p
->
entry
[
i
].
path
,
device
,
p
->
entry
[
i
].
device
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment